<template>
  <div>
    <div class="title">
      主播信息
    </div>
<div class="info">
  <img :src="'https://imagev2.xmcdn.com/'+userInfo?.logo">
  <div class="anchorInfo">
    <div class="name">{{ userInfo?.nickname }}</div>
    <div class="subscribe">{{ userInfo?.personDescribe }}</div>
    <div class="count">
      <van-icon name="manager-o" />
      <span>{{ formatNumber(countInfo) }}</span>
    </div>

  </div>
  <div class="attention">
    <van-icon name="manager-o" size="30" />
    <span>加关注</span>
  </div>
</div>
<div class="wokrs">
    <albumCard v-for="item in anchorAlbum" :key="item.id" :item3="item" :type="1"></albumCard>
  </div>
  </div>
</template>


<script setup lang="ts">
import albumCard from '../../home/components/album-card.vue'
import {formatNumber} from '../../../utils/formatNumber'
import { albumBriefDetailInfoItem, userINfoType } from '../../../api/detail/type';
defineProps<{
  userInfo?:userINfoType,
  countInfo:any,
  anchorAlbum?:albumBriefDetailInfoItem[]
}>()
</script>

<style lang="less" scoped>
.title{
  font-family: PingFangSC-Semibold;
  font-size: 18px;
  line-height: 1.39;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}
.info{
    display: flex;
    justify-content: space-between;
    img{
      width: 54px;
      height: 54px;
      border-radius: 50%;
    }
    .anchorInfo{
      width: 225px;
    margin-left: 10px;
    font-family: PingFangSC-Medium;
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 2px;
    color: #333;
    .subscribe{
      color: #999;
      font-size: 12px;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
    }
    .count{
      color: #999;
      font-size: 12px;
    }
    }
    .attention{
      display: flex;
      flex-direction: column;
      font-size: 12px;
      color: #f86442;
      margin: 5px 0 0 5px;
    }

  }
  .wokrs{
    display: flex;
    justify-content: space-between;
  }
</style>